package com.qiudaozhang.loveblog.entity;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;
import java.time.LocalDateTime;

@Entity
@Setter
@Getter
@ToString
public class User implements Serializable {

    //用户
    private static final long serialVersionUID = -7977618672656329959L;
    @Id
    @GenericGenerator(strategy = "increment",name = "increment")
    @GeneratedValue(generator = "increment")
    private Long id;

    private String username;

    private String nickname;

    private String password;

    private LocalDateTime created;

    private LocalDateTime updated;

    private Integer status;


}
